package com.example.sxt_practise.算法刷题;

import java.util.Scanner;

/**
 * @author gaofeng
 * date 2022年03月15日 22:08
 */
public class Test4 {
    public static void main(String[] args) {
        System.out.println("输入:");
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        char[] chars = s.toCharArray();
        for (int i = chars.length - 1; i >= 0; i--) {
            System.out.print(chars[i]);
        }
        System.out.println();
    }
}
